package com.movie.ticket.sale.moviecommon.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ticket
 * @since 2020-12-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@RedisHash("TPerid")
public class TPerid implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 场次表/排片
     */
    @Id
    private Integer id;

    private Integer auditoriumId;

    private Integer movieId;

    /**
     * 开始时间
     */
    private LocalDate startTime;

    /**
     * 影院方录入(优先):表单/文件  or  后台根据电影时长自动生成
     */
    private LocalDate endTime;

    /**
     * 价格
     */
    private Double price;

    /**
     * 座位信息 json格式
     */
    private String seatStram;

    /**
     * 0已结束 1正在进行 2未开始
     */
    private Integer state;


}
